package com.edu.study.base.wordrelation.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.edu.study.base.wordrelation.domain.WordRelation;

/**
 * 单词归属关系Mapper接口
 * 
 * @author zw
 * @date 2022-04-12
 */
public interface WordRelationMapper extends BaseMapper<WordRelation>
{
    /**
     * 查询单词归属关系
     * 
     * @param id 单词归属关系ID
     * @return 单词归属关系
     */
    public WordRelation selectWordRelationById(Long id);

    /**
     * 查询单词归属关系列表
     * 
     * @param wordRelation 单词归属关系
     * @return 单词归属关系集合
     */
    public List<WordRelation> selectWordRelationList(WordRelation wordRelation);

    /**
     * 新增单词归属关系
     * 
     * @param wordRelation 单词归属关系
     * @return 结果
     */
    public int insertWordRelation(WordRelation wordRelation);

    public int insertWordRelationList(List<WordRelation> wordRelationList);

    /**
     * 修改单词归属关系
     * 
     * @param wordRelation 单词归属关系
     * @return 结果
     */
    public int updateWordRelation(WordRelation wordRelation);

    /**
     * 删除单词归属关系
     * 
     * @param id 单词归属关系ID
     * @return 结果
     */
    public int deleteWordRelationById(Long id);

    /**
     * 批量删除单词归属关系
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWordRelationByIds(Long[] ids);
}
